/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelos_programa;


import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author HUSSEIN
 */
public class agregarDatos extends javax.swing.JDialog{
    Operaciones_SQL operaciones;
    int dato_1,Nfinal,Ninicial,NumAleatorio;
    /**
     * Creates new form agregarDatos
     */
    public agregarDatos(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        operaciones = new Operaciones_SQL();
        operaciones.conectar();
        setLocationRelativeTo(null);
        txDato_1.setEnabled(false);
        txtLimInf.setEnabled(false);
        txtLimSup.setEnabled(false);
        txtn.setEnabled(false);
        txtDatosExcel.setEnabled(false);
        btnLimpiar.setEnabled(false);
        setResizable(false);
    }
    
    public int num_aleatorio(){
        Ninicial = Integer.valueOf(txtLimInf.getText());
        Nfinal= Integer.valueOf(txtLimSup.getText());
        NumAleatorio = (int) (Math.random()*(Nfinal-Ninicial+1)+Ninicial); 
        return NumAleatorio;      
}
    
    public void limpiar(){
        txDato_1.setText("");
        txtLimSup.setText("");
        txtn.setText("");
    }
    
    public void limpiarExcel(){
        txtDatosExcel.setText("");
    }
    
    
    
    public void guardar(){
                
        Verificador_Enteros ent = new Verificador_Enteros();
        
        if(checkDatos.isSelected()){
        
            if(txDato_1.getText().equals(""))
                JOptionPane.showMessageDialog(null,"Ingrese Dato", "Error" ,JOptionPane.WARNING_MESSAGE);
            else
            if(ent.LeeEnteros(txDato_1.getText())==1)
                JOptionPane.showMessageDialog(null,"Corriga Dato\n(Solo se permiten NUMEROS ENTEROS)", "Error" ,JOptionPane.WARNING_MESSAGE);
            else{
     
                dato_1 = Integer.parseInt(txDato_1.getText());

                try{

                    Datos dat = new Datos(dato_1);
                    operaciones.guardarDatos(dat);
                    //actualizar la tabla DATOS
                    operaciones.mostrarDatos((DefaultTableModel)ventanaPrincipal.tbDatos.getModel());
                    //JOptionPane.showMessageDialog(null,"Guardado con exito");
                    limpiar();
                    txDato_1.requestFocus();
                
                }catch(Exception ex){
                    JOptionPane.showMessageDialog(null,"Error al guardar", "Error" ,JOptionPane.ERROR_MESSAGE);
                }
            }
        }else if (checkAleatorio.isSelected()){
            if(txtLimInf.getText().equals(""))
                JOptionPane.showMessageDialog(null,"Ingrese a", "Error" ,JOptionPane.WARNING_MESSAGE);
            else
            if(txtLimSup.getText().equals(""))
                JOptionPane.showMessageDialog(null,"Ingrese b", "Error" ,JOptionPane.WARNING_MESSAGE);
            else
                if(txtn.getText().equals("") || Integer.valueOf(txtn.getText())<=0)
                JOptionPane.showMessageDialog(null,"Ingrese n", "Error" ,JOptionPane.WARNING_MESSAGE);
            else
                if(ent.LeeEnteros(txtLimInf.getText())==1)
                JOptionPane.showMessageDialog(null,"Corriga a\n(Solo se permiten NUMEROS ENTEROS)", "Error" ,JOptionPane.WARNING_MESSAGE);
            else 
                if(ent.LeeEnteros(txtLimSup.getText())==1)
                JOptionPane.showMessageDialog(null,"Corriga b\n(Solo se permiten NUMEROS ENTEROS)", "Error" ,JOptionPane.WARNING_MESSAGE);
            else 
                if(ent.LeeEnteros(txtn.getText())==1)
                JOptionPane.showMessageDialog(null,"Corriga n\n(Solo se permiten NUMEROS ENTEROS)", "Error" ,JOptionPane.WARNING_MESSAGE);
            else{
                
                operaciones.insertar("DELETE FROM DATOS");
                int aleatorio;
                int i, limite;
                limite = Integer.valueOf(txtn.getText())-1;
        
                for(i = 0;i<limite;i++){
                aleatorio = num_aleatorio();
                operaciones.ejecutarSQL("insert into DATOS values("+aleatorio+")");
                System.gc();    //liberando memoria      
                }
                operaciones.mostrarDatos((DefaultTableModel)ventanaPrincipal.tbDatos.getModel());
                limpiar();
            
            }
        
        }else if (checkExcel.isSelected()){
            if(txtDatosExcel.getText().isEmpty()){
                JOptionPane.showMessageDialog(null,"Ingrese datos", "Error" ,JOptionPane.WARNING_MESSAGE);
            }else{
            String datosExcel;
            datosExcel = txtDatosExcel.getText();
            String lista [];
         
            //separando cada linea y guardandola en un array sin inicializar
            lista = datosExcel.split("\n");
            
            for(int i=0;i<lista.length; i++){
                operaciones.ejecutarSQL("insert into DATOS values("+lista[i]+")");
                
            }
            operaciones.mostrarDatos((DefaultTableModel)ventanaPrincipal.tbDatos.getModel());
            limpiarExcel();
            }
           
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        txDato_1 = new javax.swing.JTextField();
        btnGuardar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        txtLimSup = new javax.swing.JTextField();
        checkAleatorio = new javax.swing.JCheckBox();
        jLabel4 = new javax.swing.JLabel();
        txtn = new javax.swing.JTextField();
        checkDatos = new javax.swing.JCheckBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtDatosExcel = new javax.swing.JTextArea();
        checkExcel = new javax.swing.JCheckBox();
        jLabel5 = new javax.swing.JLabel();
        txtLimInf = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        btnLimpiar = new javax.swing.JButton();
        cargaD = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel1.setText("AGREGAR DATOS");

        txDato_1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txDato_1ActionPerformed(evt);
            }
        });

        btnGuardar.setText("Aceptar");
        btnGuardar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btnGuardarMouseReleased(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                btnGuardarMousePressed(evt);
            }
        });
        btnGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarActionPerformed(evt);
            }
        });
        btnGuardar.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                btnGuardarKeyPressed(evt);
            }
        });

        btnCancelar.setText("Cancelar");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        jLabel3.setText("b =");

        txtLimSup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtLimSupActionPerformed(evt);
            }
        });

        checkAleatorio.setText("DATOS (Entre a y b)");
        checkAleatorio.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkAleatorioStateChanged(evt);
            }
        });

        jLabel4.setText("n =");

        txtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtnActionPerformed(evt);
            }
        });

        checkDatos.setText("DATOS (Ingreso manual)");
        checkDatos.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkDatosStateChanged(evt);
            }
        });

        txtDatosExcel.setColumns(20);
        txtDatosExcel.setRows(5);
        jScrollPane1.setViewportView(txtDatosExcel);

        checkExcel.setText("Pegar datos de Excel");
        checkExcel.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkExcelStateChanged(evt);
            }
        });

        jLabel5.setText("a = ");

        txtLimInf.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtLimInfActionPerformed(evt);
            }
        });

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        btnLimpiar.setText("Limpiar");
        btnLimpiar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(308, 308, 308)
                .addComponent(jLabel1)
                .addGap(52, 52, 52))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnCancelar))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup()
                                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jLabel4))
                                                .addGap(42, 42, 42))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(134, 134, 134)))
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(txtLimSup, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txtn, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txtLimInf, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(btnGuardar)
                                        .addGroup(layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(checkAleatorio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(checkDatos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGap(42, 42, 42)
                                            .addComponent(txDato_1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
                                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(29, 29, 29)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(checkExcel)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(btnLimpiar))))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(cargaD, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 0, Short.MAX_VALUE)))))
                .addGap(71, 71, 71))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txDato_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(checkDatos))
                                .addGap(24, 24, 24)
                                .addComponent(checkAleatorio)
                                .addGap(14, 14, 14)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel5)
                                    .addComponent(txtLimInf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel3)
                                    .addComponent(txtLimSup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel4)
                                    .addComponent(txtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(checkExcel)
                                    .addComponent(btnLimpiar))
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnGuardar)
                            .addComponent(btnCancelar))
                        .addGap(18, 18, 18)
                        .addComponent(cargaD, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
        dispose();
    }//GEN-LAST:event_btnCancelarActionPerformed

    private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed
        guardar();
      
    }//GEN-LAST:event_btnGuardarActionPerformed

    private void txDato_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txDato_1ActionPerformed
        btnGuardar.requestFocus();
    }//GEN-LAST:event_txDato_1ActionPerformed

    private void btnGuardarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_btnGuardarKeyPressed
        guardar();
    }//GEN-LAST:event_btnGuardarKeyPressed

    private void checkDatosStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkDatosStateChanged
        if(checkDatos.isSelected()){
            txDato_1.setEnabled(true);
            txDato_1.requestFocus();
            checkAleatorio.setSelected(false);
            checkExcel.setSelected(false);
        }
            
        else{
            txDato_1.setEnabled(false);
        }
    }//GEN-LAST:event_checkDatosStateChanged

    private void checkAleatorioStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkAleatorioStateChanged
        if(checkAleatorio.isSelected()){
            txtLimSup.setEnabled(true);
            txtLimInf.setEnabled(true);
            txtLimInf.requestFocus();
            txtn.setEnabled(true);
            checkDatos.setSelected(false);
            checkExcel.setSelected(false);
        }
            
        else{
            txtLimSup.setEnabled(false);
            txtLimInf.setEnabled(false);
            txtn.setEnabled(false);
        }
    }//GEN-LAST:event_checkAleatorioStateChanged

    private void txtLimSupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtLimSupActionPerformed
        txtn.requestFocus();
    }//GEN-LAST:event_txtLimSupActionPerformed

    private void txtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtnActionPerformed
        btnGuardar.requestFocus();
    }//GEN-LAST:event_txtnActionPerformed

    private void txtLimInfActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtLimInfActionPerformed
        txtLimSup.requestFocus();
    }//GEN-LAST:event_txtLimInfActionPerformed

    private void checkExcelStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkExcelStateChanged
        if(checkExcel.isSelected()){
            txtDatosExcel.setEnabled(true);
            txtDatosExcel.requestFocus();
            checkAleatorio.setSelected(false);
            checkDatos.setSelected(false);
            btnLimpiar.setEnabled(true);
        }
            
        else{
            txtDatosExcel.setEnabled(false);
            btnLimpiar.setEnabled(false);
        }
    }//GEN-LAST:event_checkExcelStateChanged

    private void btnLimpiarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarActionPerformed
        limpiarExcel();
    }//GEN-LAST:event_btnLimpiarActionPerformed

    private void btnGuardarMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGuardarMousePressed
        // TODO add your handling code here:
        cargaD.setText("Ingresando datos...espere");
    }//GEN-LAST:event_btnGuardarMousePressed

    private void btnGuardarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGuardarMouseReleased
        // TODO add your handling code here:
        cargaD.setText("");
    }//GEN-LAST:event_btnGuardarMouseReleased

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(agregarDatos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(agregarDatos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(agregarDatos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(agregarDatos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
               agregarDatos dialog = new agregarDatos(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnGuardar;
    private javax.swing.JButton btnLimpiar;
    private javax.swing.JLabel cargaD;
    private javax.swing.JCheckBox checkAleatorio;
    private javax.swing.JCheckBox checkDatos;
    private javax.swing.JCheckBox checkExcel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField txDato_1;
    private javax.swing.JTextArea txtDatosExcel;
    private javax.swing.JTextField txtLimInf;
    private javax.swing.JTextField txtLimSup;
    private javax.swing.JTextField txtn;
    // End of variables declaration//GEN-END:variables
}
